import re
r = re.match(r'/index/','/index')

print(r)